/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.kkh.dao;


import com.hlingsoft.kkh.entity.Interest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface InterestDao {


	/**
	 * 添加interest
	 * @param interest
	 * @return
	 */
	public int addInterest(Interest interest);

	/**
	 * 获取interest列表
 	 * @return
	 */
	public List<Interest> getInterest();


	public List<Interest> getInterestWithNone();


	/**
	 * 获取所有interest列表
	 * @param offset
	 * @param rows
	 * @return
	 */
	public List<Interest> getAllInterest(@Param("offset")int offset,@Param("rows") int rows);


	/**
	 * 获取
	 * @return
	 */
	public Integer getAllInterestCount();

	/**
	 * id查询
	 * @param id
	 * @return
	 */
	public Interest getInterestById(@Param("id")long id);


	/**
	 * 禁用
	 * @param id
	 * @return
	 */
	public Integer deleteInterestById(@Param("id")long id);

	/**
	 * 启用
	 * @param id
	 * @return
	 */
	public Integer getOnInterestById(@Param("id")long id);


	/**
	 * 更新
	 * @param interest
	 * @return
	 */
	public Integer updateInterest(Interest interest);


}
